import { ApiPropertyOptional } from "@nestjs/swagger";
import { MaxLength, IsOptional } from "class-validator";

export class DictDto {
  @ApiPropertyOptional({ required: false, description: '角色描素' })
  @MaxLength(100, { message: '长度最大为100' })
  @IsOptional()
  readonly description?: string;
}